<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <button onclick="save()">save</button>
  <button onclick="read()">read</button>
  <script>
    const info = {};
    function save() {
      localStorage.setItem('gedner', 'boy');
    }
    function read() {
      console.log("localStorage.username: ", localStorage.getItem('username'));
      console.log("localStorage.age: ", localStorage.getItem('age'));
      console.log("localStorage.gender: ", localStorage.getItem('gedner'));
    }
  </script>
</body>

</html>